using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace FlexExplorer
{
	public partial class NewFolderForm : Form
	{
		public NewFolderForm()
		{
			InitializeComponent();
			this.DialogResult = DialogResult.Cancel;
		}

		public string NFolderName
		{
			get { return FolderName.Text; }
		}

		private void NewFolderForm_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.DialogResult = DialogResult.OK;
				Close();
			}
		}

		private void OkButton_Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.OK;
			Close();
		}

		private void CancButton_Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.Cancel;
			Close();
		}
	}
}